Laberinth
“There is no royal path to geometry.”
Euclid
The Job
If you wan't to learn how to code games you have to start small, and finish what you start. Transform laberinthnoplay.gb into something better then laberinth.gb by adding your own code.
The specifics
The variables x and y are the location of the player on the screen. You have to move him around according to the keyboard input with only two rules. Rule number one: don't ever move him into a “o”. Rule number two: you must return from the play subroutine as soon as the player is standing on a “X”.
The game is in buffered textmode so you have to call drawtext() to diplay any changes to the screen.